import request from '@/utils/request'

// 查询巡检点列表
export function listPoint(query) {
  return request({
    url: '/md/point/list',
    method: 'get',
    params: query
  })
}

// 查询巡检点详细
export function getPoint(pointId) {
  return request({
    url: '/md/point/' + pointId,
    method: 'get'
  })
}

// 新增巡检点
export function addPoint(data) {
  return request({
    url: '/md/point',
    method: 'post',
    data: data
  })
}

// 修改巡检点
export function updatePoint(data) {
  return request({
    url: '/md/point',
    method: 'put',
    data: data
  })
}

// 删除巡检点
export function delPoint(pointId) {
  return request({
    url: '/md/point/' + pointId,
    method: 'delete'
  })
}
